/**
 * MineAdmin is committed to providing solutions for quickly building web applications
 * Please view the LICENSE file that was distributed with this source code,
 * For the full copyright and license information.
 * Thank you very much for using MineAdmin.
 *
 * @Author X.Mo<root@imoi.cn>
 * @Link   https://github.com/mineadmin
 */
import type { ResponseStruct } from '#/global'

export interface MenuVo {
 
}
//列表
export function getAll(data: MenuVo): Promise<ResponseStruct> {
  return useHttp().post('/GoodsCategory/getAll', data)
}

//获取一级分类
export function getParentList(data: MenuVo): Promise<ResponseStruct> {
    return useHttp().post('/GoodsCategory/getParentList', data)
  }
  //排序
export function setSort(data: MenuVo): Promise<ResponseStruct> {
    return useHttp().post('/GoodsCategory/setSort', data)
  }
  
    //保存
export function adds(data: MenuVo): Promise<ResponseStruct> {
    return useHttp().post('/GoodsCategory/add', data)
  }
  //编辑
export function updates(data: MenuVo): Promise<ResponseStruct> {
    return useHttp().post('/GoodsCategory/update', data)
  }
    //热门
export function setIstop(data: MenuVo): Promise<ResponseStruct> {
    return useHttp().post('/GoodsCategory/setIstop', data)
  }
  //状态
export function setCategorystatus(data: MenuVo): Promise<ResponseStruct> {
    return useHttp().post('/GoodsCategory/setCategorystatus', data)
  }
    //保存图片
export function updateImgForIds(data: MenuVo): Promise<ResponseStruct> {
  return useHttp().post('/GoodsCategory/updateImgForIds', data)
}
    //颜色
    export function categorycolor(data: MenuVo): Promise<ResponseStruct> {
      return useHttp().post('/GoodsCategory/act_edit_category_color', data)
    }
      //删除空分类
      export function delEmpty(data: MenuVo): Promise<ResponseStruct> {
        return useHttp().post('/GoodsCategory/delEmpty', data)
      }
          //编辑分类上级
          export function setupmulu(data: MenuVo): Promise<ResponseStruct> {
            return useHttp().post('/GoodsCategory/setupmulu', data)
          }
  //删除
  export function deletes(data: MenuVo): Promise<ResponseStruct> {
  return useHttp().post('/GoodsCategory/delete', data)
}
